package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: dbelsey
 * Date: 30/01/13
 * Time: 21:47
 */
public abstract class LibraryItem {
    private boolean isReserved;
    protected String title;

    public boolean isReserved(){
        return isReserved;
    }

    public String getTitle() {
        return title;
    }

    public boolean reserve(){
        if(!isReserved) {
            isReserved = true;
            return true;
        }
        else
            return false;
    }
}
